/**
 * 
 */
package org.hotpotmaterial.codegenn2.config;

import org.hotpotmaterial.codegenn2.aspect.ControllerAspect;
import org.hotpotmaterial.codegenn2.config.bean.LogConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author cakydeveloper
 *
 */
@Configuration
public class HMLogConfiguration {

	@Bean
	public LogConfig logConfig() {
		LogConfig log = new LogConfig();
		log.setPrefix("hm-codegen");
		log.setRootDir("./logs");
		log.setMaxhistory(90);
		return log;
	}

	@Bean
	public ControllerAspect controllerAspect() {
		return new ControllerAspect();
	}

}
